package initalize

import "go.uber.org/zap"

func InitLogger()  {
	//logger, _ := zap.NewProduction()
	cfg := zap.NewProductionConfig()
	cfg.OutputPaths = []string{
		"./myproject.log",
		"stderr",
	}
	cfg.ErrorOutputPaths = []string{
		"./error.log",
	}
	logger, _ := cfg.Build()
	zap.ReplaceGlobals(logger)
}